home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_13242.txt < prev    next >
Text File  |  1990-10-02  |  8KB  |  349 lines

  1. -- card: 13242 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 15866
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,sDoorOpen,eDoorOpen,ladderHole,chase,blasting
  13.   if direction = "south" then
  14.     if sDoorOpen then
  15.       go to card id 33443
  16.       exit move
  17.     else
  18.       beep
  19.       put "The door is locked!" into field 3
  20.       exit move
  21.     end if
  22.   end if
  23.   if direction = "east" then
  24.     if eDoorOpen then
  25.       if ladderHole then
  26.         go to card id 30264
  27.         exit move
  28.       else
  29.         go to card id 6984
  30.         exit move
  31.       end if
  32.     else
  33.       beep
  34.       put "The door is locked!" into field 3
  35.       exit move
  36.     end if
  37.   end if
  38.   pass move
  39. end move
  40.  
  41.  
  42. on closeCard
  43.   set the cursor to 4
  44.   put "" into field 3
  45. end closeCard
  46.  
  47. on take
  48.   global object,carried
  49.   -- remember to update carried if you do not pass take
  50.   pass take
  51. end take
  52.  
  53. on drop
  54.   global object,dropRoom,carried
  55.   -- remember to update carried if you do not pass drop
  56.   pass drop
  57. end drop
  58.  
  59. on use
  60.   global object,carried,sDoorOpen,eDoorOpen,causeOfDeath,demonDead
  61.   global holdID,prevID
  62.   put last word of object into obj
  63.   delete first char of obj
  64.   delete last char of obj
  65.   if obj="key" then
  66.     put "Both doors are now unlocked and you may pass through." into field 3
  67.     put true into sDoorOpen
  68.     put true into eDoorOpen
  69.     exit use
  70.   end if
  71.   if obj="knife" then
  72.     put "demon1" into causeOfDeath
  73.     visual effect dissolve slowly to black
  74.     go to card id 3409
  75.     exit use
  76.   end if
  77.   if obj="gem" then
  78.     put prevID into holdID
  79.     visual effect iris open very fast to white
  80.     visual effect iris open to white
  81.     visual effect dissolve
  82.     go to card id 13815
  83.     put true into demonDead
  84.     put "Brilliant move!  The flash from the gem of light blasts the demon, leaving only a black sooty residue." into field 3
  85.     put holdID into prevID
  86.     show card button id 19 of card id 7465
  87.     exit use
  88.   end if
  89.   -- update carried if use results in loss of object
  90.   pass use
  91. end use
  92.  
  93.  
  94.  
  95.  
  96.  
  97. -- part 16 (button)
  98. -- low flags: 80
  99. -- high flags: 2000
  100. -- rect: left=93 top=230 right=266 bottom=127
  101. -- title width / last selected line: 0
  102. -- icon id / first selected line: 9301 / 9301
  103. -- text alignment: 1
  104. -- font id: 0
  105. -- text size: 12
  106. -- style flags: 0
  107. -- line height: 16
  108. -- part name: knife
  109. ----- HyperTalk script -----
  110. on mouseUp
  111.   global takeFlag,examFlag,object,cardID
  112.   put the name of the target into object
  113.   if takeFlag = true
  114.   then send take to card id cardID
  115. else put "a knife" into field 3
  116. put false into examFlag
  117. end mouseUp
  118.  
  119.  
  120.  
  121. -- part 17 (button)
  122. -- low flags: 80
  123. -- high flags: 2000
  124. -- rect: left=93 top=195 right=231 bottom=127
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 1015 / 1015
  127. -- text alignment: 1
  128. -- font id: 0
  129. -- text size: 12
  130. -- style flags: 0
  131. -- line height: 16
  132. -- part name: nodule
  133. ----- HyperTalk script -----
  134. on mouseUp
  135.   global takeFlag,examFlag,object,cardID
  136.   put the name of the target into object
  137.   if takeFlag = true
  138.   then send take to card id cardID
  139. else put "a silicon sphere" into field 3
  140. put false into examFlag
  141. end mouseUp
  142.  
  143.  
  144.  
  145. -- part 18 (button)
  146. -- low flags: 80
  147. -- high flags: 2000
  148. -- rect: left=24 top=206 right=242 bottom=58
  149. -- title width / last selected line: 0
  150. -- icon id / first selected line: 14953 / 14953
  151. -- text alignment: 1
  152. -- font id: 0
  153. -- text size: 12
  154. -- style flags: 0
  155. -- line height: 16
  156. -- part name: ladder
  157. ----- HyperTalk script -----
  158. on mouseUp
  159.   global takeFlag,examFlag,object,cardID
  160.   put the name of the target into object
  161.   if takeFlag = true
  162.   then send take to card id cardID
  163. else put "a rope ladder" into field 3
  164. put false into examFlag
  165. end mouseUp
  166.  
  167.  
  168.  
  169. -- part 20 (button)
  170. -- low flags: 80
  171. -- high flags: 2000
  172. -- rect: left=73 top=108 right=144 bottom=107
  173. -- title width / last selected line: 0
  174. -- icon id / first selected line: 24317 / 24317
  175. -- text alignment: 1
  176. -- font id: 0
  177. -- text size: 12
  178. -- style flags: 0
  179. -- line height: 16
  180. -- part name: key
  181. ----- HyperTalk script -----
  182. on mouseUp
  183.   global takeFlag,examFlag,object,cardID
  184.   put the name of the target into object
  185.   if takeFlag = true
  186.   then send take to card id cardID
  187. else put "a key" into field 3
  188. put false into examFlag
  189. end mouseUp
  190.  
  191.  
  192.  
  193. -- part 21 (button)
  194. -- low flags: 80
  195. -- high flags: 2000
  196. -- rect: left=128 top=130 right=166 bottom=162
  197. -- title width / last selected line: 0
  198. -- icon id / first selected line: 7012 / 7012
  199. -- text alignment: 1
  200. -- font id: 0
  201. -- text size: 12
  202. -- style flags: 0
  203. -- line height: 16
  204. -- part name: gem
  205. ----- HyperTalk script -----
  206. on mouseUp
  207.   global takeFlag,examFlag,object,cardID
  208.   put the name of the target into object
  209.   if takeFlag = true
  210.   then send take to card id cardID
  211. else put "a glowing gem" into field 3
  212. put false into examFlag
  213. end mouseUp
  214.  
  215.  
  216.  
  217. -- part 36 (button)
  218. -- low flags: 00
  219. -- high flags: 0000
  220. -- rect: left=204 top=114 right=218 bottom=250
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 0 / 0
  223. -- text alignment: 1
  224. -- font id: 0
  225. -- text size: 12
  226. -- style flags: 0
  227. -- line height: 16
  228. -- part name: 
  229. ----- HyperTalk script -----
  230. on mouseUp
  231.   global examFlag,takeFlag,direction,cardID,causeOfDeath
  232.   if takeFlag then
  233.     put "demon2" into causeOfDeath
  234.     go to card id 3409
  235.   else
  236.     put "A vile Demon of Darkness.  Known to be very unfriendly types." into field 3
  237.     put false into examFlag
  238.   end if
  239. end mouseUp
  240.  
  241.  
  242.  
  243. -- part 41 (button)
  244. -- low flags: 00
  245. -- high flags: 0000
  246. -- rect: left=153 top=59 right=101 bottom=185
  247. -- title width / last selected line: 0
  248. -- icon id / first selected line: 0 / 0
  249. -- text alignment: 1
  250. -- font id: 0
  251. -- text size: 12
  252. -- style flags: 0
  253. -- line height: 16
  254. -- part name: 
  255. ----- HyperTalk script -----
  256. on mouseUp
  257.   global examFlag,direction,cardID,sDoorOpen,demonDead,takeFlag
  258.   if examFlag then
  259.     put "A barred door leading south into the great chamber." into field 3
  260.     if sDoorOpen
  261.     then put "  The door is unlocked!" after field 3
  262.   else put "  The door is locked!" after field 3
  263.   put false into examFlag
  264. else
  265.   if takeFlag then
  266.     put "You can't take the door." into field 3
  267.     put false into takeFlag
  268.   else
  269.     put "south" into direction
  270.     send move to card id cardID
  271.   end if
  272. end if
  273. end mouseUp
  274.  
  275.  
  276.  
  277. -- part 42 (button)
  278. -- low flags: 00
  279. -- high flags: 0000
  280. -- rect: left=27 top=89 right=146 bottom=56
  281. -- title width / last selected line: 0
  282. -- icon id / first selected line: 0 / 0
  283. -- text alignment: 1
  284. -- font id: 0
  285. -- text size: 12
  286. -- style flags: 0
  287. -- line height: 16
  288. -- part name: 
  289. ----- HyperTalk script -----
  290. on mouseUp
  291.   global examFlag,direction,cardID,eDoorOpen,demonDead,takeFlag
  292.   if examFlag then
  293.     put "A barred door leading east into the round room." into field 3
  294.     if eDoorOpen
  295.     then put "  The door is unlocked!" after field 3
  296.   else put "  The door is locked!" after field 3
  297.   put false into examFlag
  298. else
  299.   if takeFlag then
  300.     put "You can't take the door." into field 3
  301.     put false into takeFlag
  302.   else
  303.     put "east" into direction
  304.     send move to card id cardID
  305.   end if
  306. end if
  307. end mouseUp
  308.  
  309.  
  310.  
  311. -- part 43 (button)
  312. -- low flags: 00
  313. -- high flags: 0000
  314. -- rect: left=180 top=131 right=168 bottom=209
  315. -- title width / last selected line: 0
  316. -- icon id / first selected line: 0 / 0
  317. -- text alignment: 1
  318. -- font id: 0
  319. -- text size: 12
  320. -- style flags: 0
  321. -- line height: 16
  322. -- part name: fake orb
  323. ----- HyperTalk script -----
  324. on mouseUp
  325.   global takeFlag,examFlag,object,cardID,causeOfDeath
  326.   if takeFlag = true then
  327.     put "orb1" into causeOfDeath
  328.     go to card id 3409
  329.     exit mouseUp
  330.   else put "The crystal orb of power!" into field 3
  331.   put false into examFlag
  332. end mouseUp
  333.  
  334.  
  335.  
  336. -- part contents for background part 25
  337. ----- text -----
  338. Treasure Room
  339. (looking south)
  340.  
  341. -- part contents for background part 24
  342. ----- text -----
  343. You are in the treasure room.  Exits are south and east:  Both doorways have doors made of massive iron bars.  A nasty looking creature, with skin so black it seems to reflect no light at all, is sitting here, holding a crystal orb.  It hisses in a voice almost a whisper,
  344. "I am a Demon of Darkness.  Leave now or I will destroy you!"
  345.  
  346.  
  347. -- part contents for background part 36
  348. ----- text -----
  349. 1